<div id="steps" class="form complex">
<?php
echo form_open($post_action);
?>
    <fieldset class="step">
            <p>
                    <label>Nomor akun</label>
                    <input id="kode_akun" name="kode_akun" type="text" maxlength="50"
                           value="<? if (set_value('kode_akun') != '') echo set_value('kode_akun'); else echo $akun->KODE_AKUN; ?>" tabindex="1" />
                    <input id="kode_akun_hide" name="kode_akun_hide" type="hidden" value="<? echo $akun->KODE_AKUN; ?>" />
            </p>
            <?php echo form_error('kode_akun'); ?>

            <p>
                    <label>Nama Akun</label>
                    <input id="nama" name="nama" type="text" 
                           value="<? if (set_value('nama') != '') echo set_value('nama'); else echo $akun->NAMA_AKUN; ?>" maxlength="200" tabindex="2" />
            </p>
            <?php echo form_error('nama'); ?>

            <p>
                <? $induk = 0; if (set_value('akun_induk') != '') $induk = set_value('akun_induk'); else $induk = $akun->ID_PARENT; ?>
                    <label class="description">Akun Induk</label>
                    <select id="akun_induk" name="akun_induk" tabindex="3" >
                            <option value="0" <? if ($induk == NULL) {?> selected="selected" <?}?>></option>
                            <? foreach ($option_induk as $key_nomer=>$value_nomer) {?>
                                <option value="<? echo $key_nomer; ?>" <? if ($induk == $key_nomer) {?> selected="selected" <?}?>><? echo $value_nomer;?></option>
                            <? }?>
                    </select>
            </p>
            <?php echo form_error('akun_induk'); ?>

            <p>
                <? $status = 0; if (set_value('status') != '') $status = set_value('status'); else $status = $akun->STATUS; ?>
                    <label>Status</label>
                    <select id="status" name="status" tabindex="4">
                            <option value="1" <? if ($status == 1) {?> selected="selected" <?}?>>Aktif</option>
                            <option value="0" <? if ($status == 0) {?> selected="selected" <?}?>>Tidak Aktif</option>
                    </select>
            </p>
            <?php echo form_error('status'); ?>

            <p class="submit">
                <? if ($akun->STATUS_AKUN != 2) {?>
                    <button id="registerButton" type="submit">Simpan</button>&nbsp;
                    <button id="registerButton" type="reset">Reset</button>&nbsp;
                <? }?>
                    <button id="registerButton" type="button" onclick="window.location.href='<?echo site_url("keuangan/akun");?>'">Kembali</button>
            </p >

    </fieldset>
<?php
echo form_close();
?>
</div>